package Homework;

import java.io.Serializable;

//订单类
public class Order implements Serializable{
//订单属性   商品名称  数量   金额
	private String name;
	private int count;
	private double money;
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getCount() {
		return count;
	}
	public void setCount(int count) {
		this.count = count;
	}
	public double getMoney() {
		return money;
	}
	public void setMoney(double money) {
		this.money = money;
	}
	public Order(String name, int count, double money) {
		super();
		this.name = name;
		this.count = count;
		this.money = money;
	}
	public Order() {
		super();
	}
	@Override
	public String toString() {
		return "商品名称：" + name + ", 订单数量：" + count + ", 总金额：" + money;
	}
	
}
